= field_set do
  = f.input :name
  = f.referenced_association :cash
  = f.input :with_accounting, show: :accountancy_options
  = f.custom_fields

#accountancy_options
  = field_set(:deposit) do
    = f.input :with_deposit, show: :deposit_options
    #deposit_options
      = f.referenced_association :depositables_account, source: {scope: {of_usage: :pending_deposit_payments}}, new: {number: Account.find_or_import_from_nomenclature(:pending_deposit_payments).number}
      = f.referenced_association :depositables_journal
      = f.input :detail_payments

  = field_set(:commission) do
    = f.input :with_commission, show: :commission_options
    #commission_options
      = f.input :commission_base_amount
      = f.input :commission_percentage
      = f.referenced_association :commission_account, :source => {scope: {of_usage: :expenses}}, :new => {:number => Account.find_or_import_from_nomenclature(:expenses)}
